filterlistmodel tests: Plug a leak
authorMatthias Clasen <mclasen@redhat.com>
Thu, 16 Jul 2020 12:48:56 +0000 (08:48 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 16 Jul 2020 12:54:36 +0000 (08:54 -0400)
g_list_model_get_item is transfer full.

testsuite/gtk/filterlistmodel-exhaustive.c

index 00be63ba085243b66ce0c20efdbfc9d054ebbda9..ec1cbecc32c5975078632ac2287929c4e99ef43a 100644 (file)
@@ -38,6 +38,8 @@
          g_assertion_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, _s); \
           g_free (_s); \
         } \
+      g_object_unref (o1); \
+      g_object_unref (o2); \
     } \
 }G_STMT_END